ARM: rcar_gen3: fix protection area access error at Cortex-A53
authorHiroyuki Yokoyama <[email protected]>
Thu, 22 Nov 2018 02:50:44 +0000 (11:50 +0900)
committerMarek Vasut <[email protected]>
Fri, 7 Dec 2018 15:31:15 +0000 (16:31 +0100)
This patch fixes the problem that "main memory domain AXI secure
access protection error" occurs when booting Cortex-A53. Exclude
the area (0x43f00000 to 0x47DFFFFF) set by DBSC from the map area.

Signed-off-by: Hiroyuki Yokoyama <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
arch/arm/mach-rmobile/memmap-gen3.c

index 7e29ccc351b7cded26ce95a8e28a79b9f547e3cb..0429a2ac5151f728cde4ef8145712e9ab7e7f802 100644 (file)
@@ -21,7 +21,13 @@ static struct mm_region gen3_mem_map[GEN3_NR_REGIONS] = {
        }, {
                .virt = 0x40000000UL,
                .phys = 0x40000000UL,
-               .size = 0x80000000UL,
+               .size = 0x03F00000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+                        PTE_BLOCK_INNER_SHARE
+       }, {
+               .virt = 0x47E00000UL,
+               .phys = 0x47E00000UL,
+               .size = 0x78200000UL,
                .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
                         PTE_BLOCK_INNER_SHARE
        }, {